import React, {useEffect, useState} from "react";
import {Button, Card, Col, Form, Input, Row, Table, Select} from "antd";
import {connect} from "umi";
import {FormInstance} from "antd/lib/form";
import StudentTableData
  from "@/pages/CharacterAnalysisTeacher/components/CharacterAnalysisForTeacher/component/StudentTableData";
import CharacterAnalysisForTeacherModel from "@/models/CharacterAnalysisForTeacher";


const CharacterAnalysisForTeacher = (props:any)=> {

  /*
  初始化数据
  ----------------------------------------------------------------------------------------------------------------------
   */
  const [flag,setFlag] = useState("0")//0是本科生
  /*
  ----------------------------------------------------------------------------------------------------------------------
   初始化数据
   */
  /*
  渲染界面
  ----------------------------------------------------------------------------------------------------------------------
   */
  useEffect(()=>{
    if (props.dispatch){
      props.dispatch({
        //路径：model的namespace+effects函数名
        type: 'Model_CharacterAnalysisForTeacherModel/getQuestionnaireListForTeacherEffects',
        payload: {
          flag:flag
        }
      })
    }
  },[])
  /*
  ----------------------------------------------------------------------------------------------------------------------
  渲染界面
   */

  return (
    <div style={{ padding: 30, background: ' #ececec', width: '100%' }}>
      <Card>

        <StudentTableData></StudentTableData>

      </Card>

    </div>
  )
}

//连接的参数名必须是model的namespace
export default connect(({ Model_CharacterAnalysisForTeacherModel }: any) => ({
  Model_CharacterAnalysisForTeacherModel,
}))(CharacterAnalysisForTeacher);
